<?
class EmoticonParser
{
   private $post;
   public function __construct($object)
   {
      $this->post = $object;
   }
   public function getContent()
   {
      // Przetwarzanie kodu BBCode.
      $post->filter();
      $content = $this->parseEmoticon($post->getContent());
      return $content;
   }
   private function parseEmoticon($content)
   {
      // Przetwarzanie kodu emotikonw w treci oraz zwrot treci.
   }	
}
?>
